<!DOCTYPE html>
<html lang="en">
<head>
<title>WebView4Delphi: uWVTypeLibrary: Interface ICoreWebView2Environment10</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="PasDoc 0.16.0-snapshot">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<link rel="StyleSheet" type="text/css" href="pasdoc.css">
</head>
<body>
<span id="ICoreWebView2Environment10"></span><h1 class="cio">Interface ICoreWebView2Environment10</h1>
<div class="sections">
<div class="one_section"><a class="section" href="#PasDoc-Description">Description</a></div><div class="one_section"><a class="section" href="#PasDoc-Hierarchy">Hierarchy</a></div><div class="one_section">Fields</div><div class="one_section"><a class="section" href="#PasDoc-Methods">Methods</a></div><div class="one_section">Properties</div></div>
<span id="PasDoc-Description"></span><h2 class="unit">Unit</h2>
<p class="unitlink">
<a href="uWVTypeLibrary.html">uWVTypeLibrary</a></p>
<h2 class="declaration">Declaration</h2>
<p class="declaration">
<code>type ICoreWebView2Environment10 = interface(<a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment9.html">ICoreWebView2Environment9</a>)</code></p>
<h2 class="description">Description</h2>
<p>
 This interface is used to create ICoreWebView2ControllerOptions object, which can be passed as a parameter in CreateCoreWebView2ControllerWithOptions and CreateCoreWebView2CompositionControllerWithOptions function for multiple profiles support. The profile will be created on disk or opened when calling CreateCoreWebView2ControllerWithOptions or CreateCoreWebView2CompositionControllerWithOptions no matter InPrivate mode is enabled or not, and it will be released in memory when the corresponding controller is closed but still remain on disk. If you create a WebView2Controller with {ProfileName=&quot;name&quot;, InPrivate=false} and then later create another one with {ProfileName=&quot;name&quot;, InPrivate=true}, these two controllers using the same profile would be allowed to run at the same time. As WebView2 is built on top of Edge browser, it follows Edge's behavior pattern. To create an InPrivate WebView, we gets an off-the-record profile (an InPrivate profile) from a regular profile, then create the WebView with the off-the-record profile. </p>
<p>


<p>&lt;see href=&quot;<a href="https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10">https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2environment10</a>&quot;&gt;See the ICoreWebView2Environment10 article.)</p>
<span id="PasDoc-Hierarchy"></span><h2 class="hierarchy">Hierarchy</h2>
<ul class="hierarchy"><li class="ancestor">IUnknown</li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment.html">ICoreWebView2Environment</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment2.html">ICoreWebView2Environment2</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment3.html">ICoreWebView2Environment3</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment4.html">ICoreWebView2Environment4</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment5.html">ICoreWebView2Environment5</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment6.html">ICoreWebView2Environment6</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment7.html">ICoreWebView2Environment7</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment8.html">ICoreWebView2Environment8</a></li>
<li class="ancestor"><a class="normal" href="uWVTypeLibrary.ICoreWebView2Environment9.html">ICoreWebView2Environment9</a></li>
<li class="thisitem">ICoreWebView2Environment10</li></ul><h2 class="overview">Overview</h2>
<span id="PasDoc-Methods"></span><h3 class="summary">Methods</h3>
<table class="summary wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Environment10.html#CreateCoreWebView2ControllerOptions-ICoreWebView2ControllerOptions-">CreateCoreWebView2ControllerOptions</a></strong>(out value: <a href="uWVTypeLibrary.ICoreWebView2ControllerOptions.html">ICoreWebView2ControllerOptions</a>): HResult; stdcall;</code></td>
</tr>
<tr class="list2">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Environment10.html#CreateCoreWebView2ControllerWithOptions-HWND-ICoreWebView2ControllerOptions-ICoreWebView2CreateCoreWebView2ControllerCompletedHandler-">CreateCoreWebView2ControllerWithOptions</a></strong>(ParentWindow: HWND; const options: <a href="uWVTypeLibrary.ICoreWebView2ControllerOptions.html">ICoreWebView2ControllerOptions</a>; const handler: <a href="uWVTypeLibrary.ICoreWebView2CreateCoreWebView2ControllerCompletedHandler.html">ICoreWebView2CreateCoreWebView2ControllerCompletedHandler</a>): HResult; stdcall;</code></td>
</tr>
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><code>function <strong><a href="uWVTypeLibrary.ICoreWebView2Environment10.html#CreateCoreWebView2CompositionControllerWithOptions-HWND-ICoreWebView2ControllerOptions-ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler-">CreateCoreWebView2CompositionControllerWithOptions</a></strong>(ParentWindow: HWND; const options: <a href="uWVTypeLibrary.ICoreWebView2ControllerOptions.html">ICoreWebView2ControllerOptions</a>; const handler: <a href="uWVTypeLibrary.ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler.html">ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler</a>): HResult; stdcall;</code></td>
</tr>
</table>
<h2 class="description">Description</h2>
<h3 class="detail">Methods</h3>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="CreateCoreWebView2ControllerOptions-ICoreWebView2ControllerOptions-"></span><code>function <strong>CreateCoreWebView2ControllerOptions</strong>(out value: <a href="uWVTypeLibrary.ICoreWebView2ControllerOptions.html">ICoreWebView2ControllerOptions</a>): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Create a new ICoreWebView2ControllerOptions to be passed as a parameter of CreateCoreWebView2ControllerWithOptions and CreateCoreWebView2CompositionControllerWithOptions. The 'options' is settable and in it the default value for profile name is the empty string, and the default value for IsInPrivateModeEnabled is false. Also the profile name can be reused. </p>
<h6 class="description_section">Attributes</h6>
<dl class="attributes">
  <dt>GUID['{EE0EB9DF-6F12-46CE-B53F-3F47B9C928E0}']</dt>
  <dd></dd>
</dl>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="CreateCoreWebView2ControllerWithOptions-HWND-ICoreWebView2ControllerOptions-ICoreWebView2CreateCoreWebView2ControllerCompletedHandler-"></span><code>function <strong>CreateCoreWebView2ControllerWithOptions</strong>(ParentWindow: HWND; const options: <a href="uWVTypeLibrary.ICoreWebView2ControllerOptions.html">ICoreWebView2ControllerOptions</a>; const handler: <a href="uWVTypeLibrary.ICoreWebView2CreateCoreWebView2ControllerCompletedHandler.html">ICoreWebView2CreateCoreWebView2ControllerCompletedHandler</a>): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Create a new WebView with options. </p>
</td></tr>
</table>
<table class="detail wide_list">
<tr class="list">
<td class="visibility"><a href="legend.html"><img  src="public.gif" alt="Public" title="Public"></a></td>
<td class="itemcode"><span id="CreateCoreWebView2CompositionControllerWithOptions-HWND-ICoreWebView2ControllerOptions-ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler-"></span><code>function <strong>CreateCoreWebView2CompositionControllerWithOptions</strong>(ParentWindow: HWND; const options: <a href="uWVTypeLibrary.ICoreWebView2ControllerOptions.html">ICoreWebView2ControllerOptions</a>; const handler: <a href="uWVTypeLibrary.ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler.html">ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler</a>): HResult; stdcall;</code></td>
</tr>
<tr><td colspan="2">
<p>
 Create a new WebView in visual hosting mode with options. </p>
</td></tr>
</table>
<hr><span class="appinfo"><em>Generated by <a href="https://pasdoc.github.io/">PasDoc 0.16.0-snapshot</a>. </em>
</span>
</body></html>
